package com.uni.service.impl;


import com.uni.common.util.PageBean;
import com.uni.entity.School;
import com.uni.mapper.SchoolMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolService {
    @Autowired
    private SchoolMapper schoolMapper;

    public List<School> findList(PageBean<School> pageBean){
        return schoolMapper.findList(pageBean);
    }

    public int countList(PageBean<School> pageBean){
        return schoolMapper.countList(pageBean);
    }

    public Integer insert(School country){
        return schoolMapper.insert(country);
    }

    public Integer update(School school){
        return schoolMapper.update(school);
    }
    public Integer delete(List<String> ids){
        return schoolMapper.delete(ids);
    }
}
